package com.karry.pojo;

import java.util.Date;

/**
 *  操作记录类
 * */
public class Record {

    //唯一标识
    private int id;
    //操作类型
    private String type;
    //操作用户id
    private int userID;
    //操作博客id
    private int blogID;
    //操作主要信息
    private String info;
    //操作其他信息
    private String otherInfo;
    //操作时间
    private Date time;

    public Record(int id, String type, int userID, int blogID, String info, String otherInfo, Date time) {
        this.id = id;
        this.type = type;
        this.userID = userID;
        this.blogID = blogID;
        this.info = info;
        this.otherInfo = otherInfo;
        this.time = time;
    }

    public Record() {}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getBlogID() {
        return blogID;
    }

    public void setBlogID(int blogID) {
        this.blogID = blogID;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String otherInfo) {
        this.otherInfo = otherInfo;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", userID=" + userID +
                ", blogID=" + blogID +
                ", info='" + info + '\'' +
                ", otherInfo='" + otherInfo + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
